tar xf ${DOWNLOADDIR}/gmp-6.3.0.tar.xz -C ${BUILDDIR}
pushd ${BUILDDIR}/gmp-6.3.0
	rm config.guess config.sub
	automake --add-missing
	./configure --build=${CROSS_HOST} --host=${CROSS_TARGET} \
                --prefix=/usr --libdir=/usr/lib64 --enable-cxx
	make ${JOBS}
	make DESTDIR=${SYSDIR}/sysroot install
	rm -v ${SYSDIR}/sysroot/usr/lib64/lib{gmp,gmpxx}.la
popd
